package cc.comac.mom.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.QualitySapPurchaseOrderService;
import cc.comac.mom.bean.QualitySapPurchaseOrder;
import cc.comac.mom.datahandlers.entity.QualitySapPurchaseOrderDataHandler;
import cc.comac.mom.util.ResultBean;

@Service
@RestController
public class QualitySapPurchaseOrderServiceImpl implements QualitySapPurchaseOrderService{

	@Autowired
	private QualitySapPurchaseOrderDataHandler qualitySapPurchaseOrderDataHandler;

	
	@Override
	public ResultBean insert(@RequestBody QualitySapPurchaseOrder obj) {
		// TODO Auto-generated method stub
		return qualitySapPurchaseOrderDataHandler.insert(obj);
	}


	@Override
	public ResultBean selectBySomeField(QualitySapPurchaseOrder qualitySapPurchaseOrder) {
		return qualitySapPurchaseOrderDataHandler.selectBySomeField(qualitySapPurchaseOrder);
	}
	

}
